package com.hnichr.ump.common.plan.entity;

import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "t_plan_group_user")
@Schema(description = "重点工作角色群组用户表")
public class PlanGroupUser extends UmpEntity {
    @Id
    @Generator
    @Column(name = "ID_", updatable = false, length = 64)
    @Schema(description = "ID")
    private String id;

    @Schema(description = "群组ID")
    @Column(name = "GROUP_ID_", length = 64)
    private String groupId;

    @Column(name = "USERNAME_", length = 64)
    @Schema(description = "用户名")
    private String username;

    @Column(name = "NICKNAME_", length = 64)
    @Schema(description = "昵称")
    private String nickname;
}


